package com.secondHandPlatform.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author team
 * @since 2023-05-18
 */
@Getter
@Setter
public class Chat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 聊天id
     */
    private Integer id;

    /**
     * 开始的用户id
     */
    private Integer beginUserId;

    /**
     * 结束的用户id
     */
    private Integer endUserId;

    /**
     * 聊天时间（重要：利用时间排序获得顺序）
     */
    private LocalDateTime createTime;

    /**
     * 聊天内容
     */
    private String content;
}
